﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Index.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content runat="server" ContentPlaceHolderID="meta">
    <meta name="description" content="Index Admin" />
    <meta name="keywords" content="Administrator" />
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="title">
    Home | Điện thoại di động gi&#225; rẻ nhất
</asp:Content>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="Head">
    <link type="text/css" rel="stylesheet" href="Styles/reset.css" />
    <link type="text/css" rel="stylesheet" href="Styles/styles.css" />
    <link href="Styles/jquery.multiSelect.css" rel="stylesheet" type="text/css" />
    <link href="Styles/slider.css" rel="stylesheet" type="text/css" />
    <link href="Styles/silder0.css" rel="stylesheet" type="text/css" />
    <link href="Styles/vMenu.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.6.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
    <script src="Scripts/slides.min.jquery.js" type="text/javascript"></script>
    <link href="Styles/jquery-ui-1.8.5.custom-black-gray.css" rel="stylesheet" type="text/css" media="screen" />
    <script src="Scripts/jquery.multiselect.js" type="text/javascript"></script>
    <script src="Scripts/WebScript.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {

            $('#slides').slides({

                preload: true,

                preloadImage: '../Images/loading.gif',

                play: 5000,

                pause: 2500,

                hoverPause: true,

                effect: 'slide, fade'

            });

        });
	    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="maincontent">
    <!-- box content -->
    
    <div id="content"> 
      
      <!-- box left -->
      
      <div class="content-l">
        <div id="AD_Zone_1"></div>
        <div class="header-blue"> <span class="title">Hãng điện thoại</span>
          <ul class="brands">
            <%
                foreach (var item in listCate)
                {  
                    %>
                        <li><a href="dien-thoai?cateId=<%=item.Category_id %>"><%=item.Name %></a></li>
                    <%
                } 
            %>
          </ul>
        </div>
        <div id="AD_Zone_2"></div>
      </div>
      
      <!-- /box left --> 
      
      <!-- box right -->
      
      <div class="content-r">
        <div id="example">
          <div id="slides">
            <div class="slides_container">
              <div class="mobileHot"> <a href="/dien-thoai/motorola/motorola-ex119---cam-ung---2-sim-2-song-666.aspx"><img src="Images/slider_1.gif" alt="119"/></a> </div>
              <div class="mobileHot"> <a href="/dien-thoai/acer/acer-iconia-tab-a501-609.aspx"><img src="Images/slider_2.png" alt="HTC JST"/></a> </div>
              <div class="mobileHot"> <a href="/dien-thoai/apple/apple-iphone-3gs---8gb---2012--chinh-hang-933.aspx"><img src="Images/slider_3.png" alt="3gs"/></a> </div>
              <div class="mobileHot"> <a href="dien-thoai/lenovo/lenovo-a65---fpt---2-sim-2-song-918.aspx"><img src="Images/slider_4.jpg" alt="a65"/></a> </div>
              <div class="mobileHot"> <a href="http://hoanghamobile.com/huong-dan/huong-dan-cac-buoc-dat-hang-truc-tuyen-68.aspx"><img src="Images/slider_5.png" alt="dathang"/></a> </div>
              <div class="mobileHot"> <a href="/dien-thoai/lg/lg-optimus-l3-e405----2-sim-2-song-893.aspx"><img src="Images/slider_6.jpg" alt="LG Optimus L3 E405"/></a> </div>
              <div class="mobileHot"> <a href="/dien-thoai/samsung/samsung-galaxy-s3-i9300---chinh-hang-842.aspx"><img src="Images/slider_7.gif" alt="galaxy s32"/></a> </div>
            </div>
            <a href="#" class="prev"><img src="Images/prev.png" width="28" height="44" alt="Arrow Prev"></a> <a href="#" class="next"><img src="Images/next.png" width="28" height="44" alt="Arrow Next"></a> </div>
        </div>
        
        <link href="Styles/slidingboxes.css" rel="stylesheet" type="text/css" />
        <script src="Scripts/slidingboxes.js" type="text/javascript"></script>
        <div class="slidingbox">
          <div class="box-boxgrid-container">
            <div class="boxgrid caption"> <a href="/dien-thoai/htc/htc-one-v---chinh-hang-gia-soc-805.aspx"><img src="Products/201209100931209590_onev_soc.jpg" alt="HTC One V"/></a>
              <div class="cover boxcaption">
                <h3>HTC One V</h3>
                <p> Giá tiền: 6,390,000 vnđ <br/>
                </p>
                <p><a href="/dien-thoai/htc/htc-one-v---chinh-hang-gia-soc-805.aspx">Xem chi tiết</a></p>
              </div>
            </div>
          </div>
          <div class="box-boxgrid-container">
            <div class="boxgrid caption"> <a href="/dien-thoai/samsung/samsung-google-nexus-7-941.aspx"><img src="Products/201209080943321790_nexus7_1.jpg" alt="Asus Google Nexus 7"/></a>
              <div class="cover boxcaption">
                <h3>Asus Google Nexus 7</h3>
                <p> Giá tiền: 5,990,000 vnđ <br/>
                </p>
                <p><a href="/dien-thoai/samsung/samsung-google-nexus-7-941.aspx">Xem chi tiết</a></p>
              </div>
            </div>
          </div>
          <div class="box-boxgrid-container">
            <div class="boxgrid caption"> <a href="/dien-thoai/nokia/nokia-lumia-800-blackwhitepink---chinh-hang-695.aspx"><img src="Products/201209071723561526_800111.jpg" alt="Lumia 800"/></a>
              <div class="cover boxcaption">
                <h3>Lumia 800</h3>
                <p> Giá tiền: 7,990,000 vnđ <br/>
                </p>
                <p><a href="/dien-thoai/nokia/nokia-lumia-800-blackwhitepink---chinh-hang-695.aspx">Xem chi tiết</a></p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="conztent-lv2">
      <div class="content-l">
      <asp:DataList ID="parentDataList" runat="server" OnItemDataBound="parentDataList_ItemDataBound">
        <ItemTemplate>
        <div class="box-brand">
          <div class="header2"> <span class="title"><span><a href="dien-thoai?cateId=<%# Eval("category_id") %>"><%# Eval("name") %></a></span></span> </div>
          <div class="content">
            <div class="content-c">
            <asp:DataList ID="dtlTest" runat="server" RepeatColumns="3" OnItemDataBound="dtlTest_ItemDataBound">
                <ItemTemplate>
                    <asp:DataList ID="dtlTest1" runat="server" RepeatColumns="3">
                        <ItemTemplate>
                            <table class="list-mobile" width="100%">
                                <tr>
                                  <td class="image"><a class="image-mobile" title='<%# Eval("model") %>' href='dienthoai.aspx?cateId=<%# Eval("category_id") %>&productId=<%# Eval("product_id") %>'><asp:Image Width="100px" Height="200px" runat="server" ImageUrl='<%# Eval("image") %>' /> </a></td>
                                  <td class="info"><span class="name"><a title="iPad 2 Wi-Fi + 3G  - 16GB ZP/A " href="Product-detail.aspx?id=<%# Eval("product_id") %>"><%# Eval("model") %></a></span>
                                    <ul>
                                      <li>Bảo hành: <%# Eval("title") %></li>
                                      <li>phụ kiện: Thân máy, Pin, Sạc, Cáp USB, Hộp, Sách hướng dẫn, Nhập khẩu chính thức</li>
                                      <li style="color:red">Tặng: Tấm dán màn hình, Tai nghe BEATS (Loại thường)</li>
                                      <li>Phiên bản quốc tế được nhập khẩu chính thức.</li>
                                    </ul>
                                    <span class="price"> <span class="price-value"><%# Eval("price_output","{0:0,0}") %> vnđ</span> </span></td>
                                </tr>
                              </table>
                        </ItemTemplate>
                    </asp:DataList>
                </ItemTemplate>
            </asp:DataList>
            </div>
          </div>
        </div>
            </ItemTemplate>
        </asp:DataList>     
      </div>
      <div class="content-r">
        <div class="box-other">
          <div class="title"> <span>Hỗ trợ bán hàng trực tuyến</span> </div>
          <ul>
            <li>
              <div class="mobile-info">
                <div class="mobile-c"> <span  class="name"><a style="color:#C90A0F" rel="nofollow" href="ymsgr:sendim?salehoanghamobile&amp;m=Xin chao, toi muon hoi ve san pham  !" title="Tư vấn mua Điện thoại"><img align="absmiddle" border="0" alt="Y!M" src="http://opi.yahoo.com/online?u=salehoanghamobile&amp;m=g&amp;t=1&amp;l=us"> Hỗ trợ khách hàng 1</a></span> </div>
              </div>
            </li>
            <li>
              <div class="mobile-info">
                <div class="mobile-c"> <span class="name"><a style="color:#C90A0F" rel="nofollow" href="ymsgr:sendim?hotro_hoanghamobile&amp;m=Xin chao, toi muon hoi ve san pham  !" title="Tư vấn mua Điện thoại"><img align="absmiddle" border="0" alt="Y!M" src="http://opi.yahoo.com/online?u=hotro_hoanghamobile&amp;m=g&amp;t=1&amp;l=us"> Hỗ trợ khách hàng 2</a></span> </div>
              </div>
            </li>
            <li>
              <div class="mobile-info">
                <div class="mobile-c"> <span class="name"><a style="color:#C90A0F" rel="nofollow" href="ymsgr:sendim?hotro_hoanghamobile1&amp;m=Xin chao, toi muon hoi ve san pham  !" title="Tư vấn mua Điện thoại"><img align="absmiddle" border="0" alt="Y!M" src="http://opi.yahoo.com/online?u=hotro_hoanghamobile1&amp;m=g&amp;t=1&amp;l=us"> Hỗ trợ khách hàng 3</a></span> </div>
              </div>
            </li>
            <li>
              <div class="mobile-info">
                <div class="mobile-c"> <span class="name"><a style="color:#C90A0F" rel="nofollow" href="ymsgr:sendim?hotro_hoanghamobile2&amp;m=Xin chao, toi muon hoi ve san pham  !" title="Tư vấn mua Điện thoại"><img align="absmiddle" border="0" alt="Y!M" src="http://opi.yahoo.com/online?u=hotro_hoanghamobile2&amp;m=g&amp;t=1&amp;l=us"> Hỗ trợ khách hàng 4</a></span> </div>
              </div>
            </li>
          </ul>
        </div>
        <style>
    .row {display:inline-block; clear:both; padding:0px 10px 5px 10px;}
    .row .editor-label {padding:5px 0px 0px 0px; }

    .row .editor-field {padding:5px 0px 0px 0px;}
</style>
        <div class="box-other"> </div>
        <div id="AD_Zone_3"></div>
        <div class="box-device">
          <h3><span>Danh mục điện thoại</span></h3>
          <div class="vmenu">
            <ul class="news-category">
                <%
                    foreach (var item in listDanhmucsanpham)
                    {
                        %>
                            <li><a href="<%=item.Url%>"><%=item.Name%></a></li>
                        <%
                    } 
                %>

            </ul>
          </div>
        </div>
        <div id="AD_Zone_4"></div>
        <div id="AD_Zone_5"></div>
        <div class="box-device">
          <h3><span>Danh mục phụ kiện</span></h3>
          <div class="vmenu">
            <ul class="news-category">
                <%
                    foreach (var item in listDanhmucphukien)
                    {
                        %>
                            <li><a href="<%=item.Url%>"><%=item.Name%></a></li>
                        <%
                    } 
                %>
            </ul>
          </div>
        </div>
        <div id="AD_Zone_6"></div>
        <div id="AD_Zone_7"></div>
        <div class="box-other">
          <div class="title"> <span>Điện thoại được xem nhiều</span> </div>
            <asp:DataList ID="dtlMostView" runat="server">
                <ItemTemplate>
                    <ul>
                        <li class="alt2">
                          <div class="mobile-info">
                            <div class="mobile-c"> <a class="image" href="/dien-thoai/samsung/samsung-s5233---star-71.aspx"> <img src='<%# Eval("image") %>' alt="Samsung S5233 - STAR" /> </a>
                              <div class="info"> <span class="name"><a href="/dien-thoai/samsung/samsung-s5233---star-71.aspx"><asp:Label runat="server" ID="lblModel" Text='<%# Eval("model") %>'>
                              </asp:Label></a></span> <span class="price"> <span class="price-value"><asp:Label runat="server" ID="lblPrice" Text='<%# Eval("price_output","{0:0,0}") %>'></asp:Label> vnđ</span> </span> </div>
                            </div>
                          </div>
                        </li>
                    </ul>
                </ItemTemplate>
            </asp:DataList>
        </div>
        <div id="AD_Zone_8"></div>
      </div>
    </div>
</asp:Content>

